<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2022/7/26 0026
 * Time: 20:00
 */

namespace app\api\controller;

use framework\library\Controller;
use function BenTools\CartesianProduct\cartesian_product;

class UserController extends Controller
{
    protected $noLogin = [];

    protected $middleware = ['auth'];

    public function login()
    {

    }

    public function info()
    {
//        $user = [
//            "id" => 1,
//            "name" => "北桥苏",
//            "nickname" => "dejd#feedef1221#$#edsdd@#!@#"
//        ];
//        return $user;

        // 使用vendor包里类方法
        $data = [
            "1" => [
                1112,1156,1213
            ],
            "2" => [
                1225,1241,2314
            ],
            "3" => [
                2312,1546,1645
            ]
        ];
        return cartesian_product($data)->asArray();
    }

}